import {VxeGridPropTypes} from "vxe-table/types/grid";

export const columns: VxeGridPropTypes.Columns = [
  {type: 'radio', width: 40,},
  {type: 'seq', title: '序号', treeNode: false, width: 60,},
  {field: 'code', title: '仓库编码', sortable: false, visible: true, width: 160,},
  {field: 'name', title: '仓库名称', sortable: false, width: 180,},
  {field: 'address', title: '仓库地址', sortable: false, width: 180,},
  {field: 'isDefault', title: '默认仓库', sortable: false, width: 80,},
  {field: 'enable', title: '启用', sortable: false, width: 50, formatter: 'formatEnable'},
  {field: 'cost', title: '单位成本', visible: false, sortable: false, width: 100,},
  {field: 'memo', title: '备注', visible: true, sortable: false, width: 180,},
  {field: 'contacts', title: '发货联系人', visible: false, sortable: false, width: 120,},
  {field: 'phone', title: '联系人手机', visible: true, sortable: false, width: 120,},
  {field: 'email', title: 'email', visible: false, sortable: false, width: 120,},
  {field: 'zipCode', title: '邮编', visible: false, sortable: false, width: 120,},
  {field: 'createdTime', title: '创建时间', visible: false, sortable: false, width: 140,},
  {field: 'updatedTime', title: '更新时间', visible: false, sortable: false,},
];

export const pagerConfig: VxeGridPropTypes.PagerConfig = {
    total: 0,
    currentPage: 1,
    pageSize: 20,
    pageSizes: [20, 50, 100, 200, 500, 1000],
    layouts: ['PrevJump', 'PrevPage', 'Number', 'NextPage', 'NextJump', 'Sizes', 'FullJump', 'Total'],
    pagerCount: 3,
    border: true,
    background: true,
    perfect: true,
};


